﻿<?php
require_once("../config.php");
require_once _SRC_."/domain/PageTemplate.php";
require_once(_SRC_."/dao/PageTemplateDao.php");
?>

<?php
	$pageTemplateDao = new PageTemplateDao();
	$pageTemplates = $pageTemplateDao->getPageTemplates();
?>

	<table border=1 id="pageTemplateTable">
			<tr>
				<td>顺序</td><td>名称</td><td>别称</td>
			</tr>
			<?php
			$i = 1;
						
			foreach ($pageTemplates as $pageTemplate){
				$id = $pageTemplate->id;
				echo '<tr class="dataRow">';
				echo '<td>'.$i.'</td>';
				echo '<td>'.$pageTemplate->name.'</td>';
				echo '<td>'.$pageTemplate->path.'</td>';
				echo '</tr>';		
				$i++;
			}
			?>
	</table>